package com.example.pingze.repository;

import com.example.pingze.entity.PoetUserCollect;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PoetUserCollectRepository extends JpaRepository<PoetUserCollect, String>, JpaSpecificationExecutor<PoetUserCollect> {
    List<PoetUserCollect> findPoetUserCollectByAccount(String account);

    PoetUserCollect findPoetUserCollectByAccountAndPoetName(String account, String name);

    PoetUserCollect findPoetUserCollectById(String id);
}
